<?php
$base_url = 'http://'.$_SERVER['HTTP_HOST'].$this->base;
?>
<div class="span3">
	<?php 
		$url = $_SERVER['REQUEST_URI'];
		$ex_url = explode('/',$url);
		//print_r($ex_url);
		if($ex_url[1]=="Users" && $ex_url[2]=="profile"){
			$profile = "class='active'";
		}else if($ex_url[1]=="Menus" && $ex_url[2]=="add"){
			$addmenu = "class='active'";
		}else if($ex_url[1]=="Menus"){
			$menu = "class='active'";
		}else if($ex_url[1]=="Headers"){
			$header = "class='active'";
		}else if($ex_url[1]=="Pages"){
			$page = "class='active'";
		}else if($ex_url[1]=="Galleries"){
			$gallery = "class='active'";
		}else{
			$home = "class='active'";
		}
		
	?>
	<div class="well">
        <ul class="nav nav-list">
			<li><a href="#" class="nav-header"><i class="i"></i> Settings</a></li>
			<li class="divider"></li>
			<!--<li <?php echo $home; ?>><a href="#"><i class="icon-home"></i> Home</a></li>-->
			<li <?php echo $profile; ?>><a href="<?php echo $base_url?>/Users/profile"><i class="icon-user"></i> Profile</a></li>
			<li><a href="#" class="nav-header"> Menus</a></li>
			<li class="divider"></li>
			<li <?php echo $menu; ?>><a href="<?php echo $base_url?>/Menus"><i class="icon-list-alt"></i>Menus</a></li>
			<li <?php echo $addmenu; ?>><a href="<?php echo$base_url?>/Menus/add"><i class="icon-cog"></i>Create Menu</a></li>
			<li><a href="#" class="nav-header"> Content</a></li>
			<li class="divider"></li>
			<li <?php echo $header; ?>><a href="<?php echo$base_url?>/Headers"><i class="icon-tasks"></i>Header</a></li>
			<li <?php echo $page; ?>><a href="<?php echo$base_url?>/Pages"><i class="icon-file"></i>Page</a></li>
			<li <?php echo $gallery; ?>><a href="<?php echo$base_url?>/Galleries"><i class="icon-picture"></i>Gallery</a></li>
			<li class="divider"></li>
			<li><a href="<?php echo$base_url?>/Users/logout"><i class="icon-off"></i>Logout</a>
		</ul>
	</div>
</div>
